package controllers

import (
	"github.com/kataras/iris/mvc"
	"secondbuy/Iris/repositories"
	"secondbuy/Iris/services"
)

type MovieController struct {

}

func (c *MovieController)Get()mvc.View  {
	movieRepository := repositories.NewMovieManager()
	movieService := services.NewMovieServiceManger(movieRepository)
	MoiveResult := movieService.ShowMovieName()
	return mvc.View{
		Name: "movie/index.html",
		Data: MoiveResult,
	}
}
